FROM registry.cn-hangzhou.aliyuncs.com/yinzhengjie-k8s/tomcat:9.0.87-jdk17

LABEL maintainer="JasonYin" \
      email="y1053419035@qq.com" \
      blog="https://www.cnblogs.com/yinzhengjie/"

EXPOSE 8080 8443 8009

RUN mkdir /yinzhengjie/data/tomcat/webapps -p
COPY server.xml /usr/local/tomcat/conf/server.xml 
COPY myapp /yinzhengjie/data/tomcat/webapps/myapp
COPY metrics.war /yinzhengjie/data/tomcat/webapps 
COPY ./libs/*.jar /usr/local/tomcat/lib/

CMD ["/usr/local/tomcat/bin/catalina.sh","run"]
